<%@ page import="utils.SessionVar" %>
<%@ page import="filter.SignInFilter" %>
<%@ page import="account.AccountUtils" %>
<%@ page import="utils.Var" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
  <title></title>
  <link href="../skin/default/global.css" rel="stylesheet" type="text/css"/>
  <link href="../skin/default/layout.css" rel="stylesheet" type="text/css"/>
  <script src="../common/jquery-1.3.2.min.js"></script>
  <script src="../common/fun.js"></script>
</head>
<%
  String userName = (String) session.getAttribute(SessionVar.USER_NAME);
%>
<body class="admin-frame">
<table width="100%" height="100%" style="border-bottom: #fff 2px solid;" cellSpacing="0" cellPadding="0">
  <thead>
    <tr>
      <td class="admin-header">
        <h1>考试系统后台管理</h1>
        <ul id="toptab">
          <%
            if (AccountUtils.hasRight(session, Var.RIGHT_CONTROL_IP) | AccountUtils.hasControlExamineeRight(session)) {
          %>
          <li id="tab1"><a href="control/getComputerList.action" target="mainFrame">控制台</a></li>
          <%
            }
            if (AccountUtils.hasRight(session, Var.RIGHT_QUESTION)) {
          %>
          <li><span class="line"></span><a target="mainFrame" href="manage/index.jsp">题库管理</a></li>
          <%
            }
            if (AccountUtils.hasRight(session, Var.RIGHT_SETUP)) {
          %>
          <li><span class="line"></span><a target="mainFrame" href="setting/index.jsp">分值设定</a></li>
          <%
            }
            if (AccountUtils.hasRight(session, Var.RIGHT_EXAMINEE_IMPORT | Var.RIGHT_EXAMINEE_MANAGE | Var.RIGHT_EXAMINEE_UPDATE)) {
          %>
          <li><span class="line"></span><a href="students/index.jsp" target="mainFrame">考生管理</a></li>
          <%
            }
            if (AccountUtils.hasRight(session, Var.RIGHT_EXAM)) {
          %>
          <li><span class="line"></span><a href="search/index.jsp" target="mainFrame">考试查询</a></li>
          <%
            }
            if (AccountUtils.hasRight(session, Var.RIGHT_STATISTIC)) {
          %>
          <li><span class="line"></span><a href="stat/index.jsp" target="mainFrame">考试统计</a></li>
          <%
            }
            if (AccountUtils.isAdmin(session)) {
          %>
          <li><span class="line"></span><a href="account/index.jsp" target="mainFrame">账户管理</a></li>
          <%
            }
          %>
        </ul>

        <script>
          var topTab = new KS.Tab("toptab")
          topTab.select("tab1")
            //	list.select("a1")
        </script>
        <div class="admin-header-userdata">
          你好，<%=userName%>　|　<a href="<%=SignInFilter.SIGNOUT_MANAGER%>">退出 </a>
        </div>
      </td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        <div class="admin-main-frame-content">
          <iframe name="mainFrame" src="control/getComputerList.action" width="100%" height="100%" id="mainFrame" frameBorder="no" scrolling="auto" hideFocus="hidefocus">
          </iframe>
        </div>
      </td>
    </tr>
  </tbody>
</table>
</body>

</html>
